package com.jj.controller;

import org.springframework.web.bind.annotation.*;

/**
 * Description:
 * Author: JJ
 * Date:2025-03-23
 * Time:14:42
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/{name}")
    public String getUser(@PathVariable String name){
        return name;
    }

    @DeleteMapping("/{name}")
    public String deleteUser(@PathVariable String name) {
        return name + "删除成功!!!!!";
    }

}
